/* xsh_gen.c - xsh_gen */

#include <xinu.h>
#include <stdio.h>
#include <string.h>

/*------------------------------------------------------------------------
 * xhs_gen - test shell for pipe mechanism
 *------------------------------------------------------------------------
 */
shellcmd xsh_gen(int nargs, char *args[])
{	
	if ((strncmp(args[0],"gen",10) != 0) || (strncmp(args[1],"|",10) != 0) || (strncmp(args[2],"search",10) != 0)) {
		printf("Invalid use of gen&search pipe test program\n");
		return 1;
	}

	shelltest();
	return 0;
}
